@font-face {
  font-family: "Pixel Number";
  src: url('@/assets/pixel-number.woff') format('truetype');
}

/* 容器样式 */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

/* 不同主题样式 */
.light {
  background-color: #fff;
  color: #333;
  --bg-color: #fff;
  --text-color: #333;

  .timer {
    color: #333;
  }

  .action input,
  .action select {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
  }

  .action .timeInput {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
  }

  .copyright a {
    color: #333;
  }

  .action input {
    background-color: #fff;
    color: #333;
    border: none;
  }
}

.dark {
  background-color: #333;
  color: #fff;
  --bg-color: #222;
  --text-color: #fff;

  .timer {
    color: #fff;
  }

  .action input,
  .action select {
    background-color: #222;
    color: #fff;
    border: 1px solid #333;
  }

  .action .timeInput {
    background-color: #222;
    color: #fff;
    border: 1px solid #333;
  }

  .copyright a {
    color: #fff;
  }

  .action input {
    background-color: #222;
    color: #fff;
    border: none;
  }
}

.neon {
  background-color: #000;
  color: #0f0;
  --bg-color: #222;
  --text-color: #0f0;

  .timer {
    color: #0f0;
    text-shadow: 0 0 20px #0f0;
  }

  .action input,
  .action select {
    background-color: #222;
    color: #0f0;
    border: 1px solid #0f0;
  }

  .action .timeInput {
    background-color: #222;
    color: #0f0;
    border: 1px solid #0f0;
  }

  .copyright a {
    color: #0f0;
  }

  .action input {
    background-color: #222;
    color: #0f0;
    border: none;
  }
}

.pastel {
  background-color: #f8f4f9;
  color: #777;
  --bg-color: #fff;
  --text-color: #e91e63;

  .timer {
    color: #e91e63;
  }

  .action input,
  .action select {
    background-color: #fff;
    color: #e91e63;
    border: 1px solid #f8bbd0;
  }

  .action .timeInput {
    background-color: #fff;
    color: #e91e63;
    border: 1px solid #f8bbd0;
  }

  .copyright a {
    color: #e91e63;
  }

  .action input {
    background-color: #fff;
    color: #e91e63;
    border: none;
  }
}

.deepDark {
  background-color: #111;
  color: #ddd;
  --bg-color: #111;
  --text-color: #fff;

  .timer {
    color: #fff;
  }

  .action input,
  .action select {
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
  }

  .action .timeInput {
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
  }

  .copyright a {
    color: #fff;
  }

  .action input {
    background-color: #111;
    color: #fff;
    border: none;
  }
}

.pureWhite {
  background-color: #fff;
  color: #000;
  --bg-color: #eee;
  --text-color: #000;

  .timer {
    color: #000;
  }

  .action input,
  .action select {
    background-color: #eee;
    color: #000;
    border: 1px solid #ccc;
  }

  .action .timeInput {
    background-color: #eee;
    color: #000;
    border: 1px solid #ccc;
  }

  .copyright a {
    color: #000;
  }

  .action input {
    background-color: #eee;
    color: #000;
    border: none;
  }
}

.cute {
  background-color: #ffc0cb;
  color: #fff;
  --bg-color: #fff;
  --text-color: #ff69b4;

  .timer {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
  }

  .action input,
  .action select {
    background-color: #fff;
    color: #ff69b4;
    border: 1px solid #ffb6c1;
  }

  .action .timeInput {
    background-color: #fff;
    color: #ff69b4;
    border: 1px solid #ffb6c1;
  }

  .copyright a {
    color: #ff69b4;
  }

  .action input {
    background-color: #fff;
    color: #ff69b4;
    border: none;
  }
}

/* 使用提示样式 */
.usageTip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.usageTipContent {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;

  @media (max-width: 768px) {
    padding: 15px;
    margin: 10px;
    width: 95%;
    font-size: 14px;

    h2 {
      font-size: 18px;
      margin-bottom: 10px;
    }

    p {
      margin: 8px 0;
      line-height: 1.4;
    }

    button {
      width: 100%;
      margin-top: 15px;
      padding: 10px;
    }
  }
}

/* 计时器样式 */
.timer {
  font-size: 48px;
  margin-bottom: 20px;
}

/* 操作区域样式 */
.action {
  margin-top: 50px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  input,
  select {
    padding: 5px 10px; // 减少上下内边距，原先是 10px
    font-size: 14px; // 减小字体大小，原先是 16px
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
  
  input:disabled,
  button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }

  input[type="time"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.1);  // Default border
    background: var(--bg-color, #fff);
    color: var(--text-color, inherit);
    position: relative;
    padding: 5px 15px; // 减少上下内边距，原先是 10px
    width: auto;
    min-width: 140px;
    font-size: 14px; // 减小字体大小，原先是 16px

    // 禁用原生控件样式
    &::-webkit-inner-spin-button,
    &::-webkit-calendar-picker-indicator,
    &::-webkit-clear-button {
      display: none;
      -webkit-appearance: none;
      appearance: none;
    }

    // 自定义时间字段样式
    &::-webkit-datetime-edit {
      padding: 0;
      text-align: center;
    }

    &::-webkit-datetime-edit-fields-wrapper {
      padding: 0;
    }

    &::-webkit-datetime-edit-hour-field,
    &::-webkit-datetime-edit-minute-field,
    &::-webkit-datetime-edit-second-field {
      padding: 0 2px;
    }

    &[data-is-alarm="false"] {
      // 特别为倒计时输入框设置样式
      width: 140px;
      text-align: center;
      font-family: monospace;
    }

    @media (max-width: 768px) {
      width: 120px;
      padding: 12px;
      font-size: 16px;
      letter-spacing: 1px;
      text-align: center;
      
      // 增加点击区域
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }
  }
}

/* 主题选择器样式 */
.themeSelector {
  margin-top: 20px;

  @media (min-width: 768px) {
    /* 宽屏设备（如桌面）的样式 */
    position: absolute;
    top: 20px;
    right: 20px;
    margin-top: 0;
  }
}

/* 版权信息样式 */
.copyright {
  margin-top: 20px;
  font-size: 12px;
  color: #777;
}

.timer {
  color: white;
  font-size: 14vw;
  text-align: center;
  margin: 0 auto;
  font-family: "Pixel Number" !important;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.action {
  margin-top: 50px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  input,
  select {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
}

.themeSelector {
  margin-top: 20px;

  @media (min-width: 768px) {
    // 宽屏设备（如桌面）的样式
    position: absolute;
    top: 20px;
    right: 20px;
    margin-top: 0;
  }
}

/* 版权信息样式 */
.copyright {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #777;
  z-index: 1000;
}

/* Light Theme */
.light {
  background-color: #f5f5f5;
  color: #333;

  .timer {
    color: #333;
  }

  .action input,
  .action select {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
  }

  .action .timeInput {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
  }

  .copyright a {
    color: #333;
  }

  .action input {
    background-color: #fff;
    color: #333;
    border: none;
  }
}

/* Dark Theme */
.dark {
  background-color: #121212;
  color: #fff;

  .timer {
    color: #fff;
  }

  .action input,
  .action select {
    background-color: #222;
    color: #fff;
    border: 1px solid #333;
  }

  .action .timeInput {
    background-color: #222;
    color: #fff;
    border: 1px solid #333;
  }

  .copyright a {
    color: #fff;
  }

  .action input {
    background-color: #222;
    color: #fff;
    border: none;
  }
}

/* Neon Theme */
.neon {
  background-color: #000;
  color: #0f0;

  .timer {
    color: #0f0;
    text-shadow: 0 0 20px #0f0;
  }

  .action input,
  .action select {
    background-color: #222;
    color: #0f0;
    border: 1px solid #0f0;
  }

  .action .timeInput {
    background-color: #222;
    color: #0f0;
    border: 1px solid #0f0;
  }

  .copyright a {
    color: #0f0;
  }

  .action input {
    background-color: #222;
    color: #0f0;
    border: none;
  }
}

/* Pastel Theme */
.pastel {
  background-color: #fce4ec;
  color: #e91e63;

  .timer {
    color: #e91e63;
  }

  .action input,
  .action select {
    background-color: #fff;
    color: #e91e63;
    border: 1px solid #f8bbd0;
  }

  .action .timeInput {
    background-color: #fff;
    color: #e91e63;
    border: 1px solid #f8bbd0;
  }

  .copyright a {
    color: #e91e63;
  }

  .action input {
    background-color: #fff;
    color: #e91e63;
    border: none;
  }
}

/* Deep Dark Theme */
.deepDark {
  background-color: #000;
  color: #fff; /* 修改字体颜色为白色 */

  .timer {
    color: #fff; /* 修改字体颜色为白色 */
  }

  .action input,
  .action select {
    background-color: #111;
    color: #fff; /* 修改字体颜色为白色 */
    border: 1px solid #333;
  }

  .action .timeInput {
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
  }

  .copyright a {
    color: #fff; /* 修改字体颜色为白色 */
  }

  .action input {
    background-color: #111;
    color: #fff;
    border: none;
  }
}

/* Pure White Theme */
.pureWhite {
  background-color: #fff;
  color: #000;

  .timer {
    color: #000;
  }

  .action input,
  .action select {
    background-color: #eee;
    color: #000;
    border: 1px solid #ccc;
  }

  .action .timeInput {
    background-color: #eee;
    color: #000;
    border: 1px solid #ccc;
  }

  .copyright a {
    color: #000;
  }

  .action input {
    background-color: #eee;
    color: #000;
    border: none;
  }
}

/* Cute Theme */
.cute {
  background-color: #ffd1dc;
  color: #ff69b4;

  .timer {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
  }

  .action input,
  .action select {
    background-color: #fff;
    color: #ff69b4;
    border: 1px solid #ffb6c1;
  }

  .action .timeInput {
    background-color: #fff;
    color: #ff69b4;
    border: 1px solid #ffb6c1;
  }

  .copyright a {
    color: #ff69b4;
  }

  .action input {
    background-color: #fff;
    color: #ff69b4;
    border: none;
  }
}

.usageTip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.usageTipContent {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
}

.usageTipContent h2 {
  margin-bottom: 10px;
}

.usageTipContent p {
  margin-bottom: 5px;
}

.usageTipContent button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

.usageTipContent button:hover {
  background-color: #0056b3;
}

.fullscreen {
  .action,
  .themeSelector {
    display: none;
  }
  // 全屏模式下版权栏显示
  .copyright {
    opacity: 1; 
  }
}